import 'package:flutter/material.dart';

class MyApp5 extends StatelessWidget {
  const MyApp5({super.key});

  @override
  Widget build(BuildContext context) {
    return  Scaffold(
      // 1.1 导航
      appBar: AppBar(
        backgroundColor: Colors.pink,
        title: const Text('Image 组件'),
        centerTitle: true,
      ),
      // 1.2 主体部分
      body:  Center(
        child:
        Image.network(
          // 'https://www.baidu.com/s?wd=%E7%99%BE%E5%BA%A6%E7%83%AD%E6%90%9C&sa=ire_dl_gh_logo_texing&rsv_dl=igh_logo_pcs',
         'https://yanxuan-item.nosdn.127.net/e529b6ab111ade9da9314867f98d360f.png',
          width: 200,
          height: 200,
  
        ),
         
      )
    );
   
  }
}